/*
 * @Author: YeMiao 
 * @Date: 2018-02-24 16:45:29 
 * @Last Modified by: YeMiao
 * @Last Modified time: 2018-03-04 09:21:24
 */
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { UserComponent } from './user.component';
import { LogComponent } from './userlog/log.component';

const userRouters: Routes = [
  { 
    path: '',	
    component: UserComponent,
    children: [
      { path: '', redirectTo: 'log', pathMatch: 'full' },
      { path: 'log', component: LogComponent },
      { path: 'info', loadChildren: './user-info/user-info.module#UserInfoModule' }
    ]
  }
];

@NgModule({
  imports: [
    RouterModule.forChild(userRouters)
  ],
  exports: [
    RouterModule
  ]
})
export class UserRouterModule {}